
import './App.scss';
import {BrowserRouter} from 'react-router-dom'
import { Route,Routes } from 'react-router-dom';
import Traffic from './pages/traffic';
import Admin from './pages/admin';
import Header from './components/header';
import {Provider} from 'react-redux'
import store from './store/store';
function App() {
  return (
    <BrowserRouter>
      <Provider store={store}>
        <div className="App">
          <Header></Header>
          <Routes>
            <Route path='/' element={<Traffic></Traffic>}></Route>
            <Route path='/traffic' element={<Traffic></Traffic>}></Route>
            <Route path='/admin' element={<Admin></Admin>}></Route>
          </Routes>
        </div>
      </Provider>
    </BrowserRouter>
  );
}

export default App;
